]<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>会话管理</title>
<meta name="decorator" content="default" />
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/sys/sessions/">会话列表</a></li>
	</ul>
	<sys:message content="${message}" />
	当前在线人数：${sessionCount}人
	<br />
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<tr>
			<th>会话ID</th>
			<th>用户名</th>
			<th>主机地址</th>
			<th>最后访问时间</th>
			<th>已强制退出</th>
			<th>操作</th>
			<c:forEach items="${sessions}" var="session">
				<tr>
					<td>${session.id }</td>
					<td>${session.loginname}</td>
					<td>${session.host}</td>
					<td><fmt:formatDate value="${session.lastAccessTime}"
							pattern="yyyy-MM-dd HH:mm:ss" /></td>
					<td>${session.forceLogouted ?"是":"否" }</td>
					<td><c:if test="${!session.forceLogouted}">
							<a href="${ctx}/sys/sessions/${session.id}/forceLogout">强制退出</a>
						</c:if></td>
				</tr>
			</c:forEach>
	</table>
</body>
</html>